twoway with intermediate switch